﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.Service.Entity;

namespace ZSZ.Service.EntityConfig
{
    class HousePicConfig: EntityTypeConfiguration<HousePicEntity>
    {
        public HousePicConfig() {
            this.ToTable("T_HousePic");
            this.HasRequired(h => h.House).WithMany(h => h.HousePics).HasForeignKey(h=>h.HouseId);
        }
    }
}
